import java.io.Serializable;
import java.util.HashSet;

public abstract class Index implements Serializable {
	private static final long serialVersionUID = 1L;

	private HashSet<Ouvrage> Ouvrages;
	private HashSet<Article> Articles;

	Index() {
		Ouvrages = new HashSet<Ouvrage>();
		Articles = new HashSet<Article>();
	}

	public HashSet<Ouvrage> getOuvrages() {
		return Ouvrages;
	}
	
	public HashSet<Article> getArticles() {
		return Articles;
	}
	
	public void lierArticle(Article a)
	{
		Articles.add(a);
	}

	public abstract String getType();

}
